<?php
namespace app\common\model;
/**
 * 广告
 */
class Ads extends BaseModel {

    protected $name = 'ads';


    public function add($data){
        return $this->allowField(true)->save($data);
    }

    public function edit($data){
        unset($data['id']);
        return $this->allowField(true)->save($data);
    }
    
}